package com.zbbt.sportslottery.bean;

import java.util.ArrayList;
import java.util.List;

import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.exception.DbException;
import com.zbbt.sportslottery.util.LogUtil;

public class FindingNewsInformation {
	private int id;
	private int findId; // id
	private String title; // 标题
	private int programaId; // 栏目ID
	private long createAt; // 创建时间
	private int userId; // 作者ID
	private int recommendNum; // 推荐数
	private int opposeNum;// 反对数
	private int shareNum;// 分享次数
	private int collectNum;// 收藏次数
	private int shareAddress;// 分享地址1微信 2QQ空间3、新浪
	private int readNum;// 阅读次数
	private int findFlag;// 发现标识
	private String newsUrl;// url
	private String newsContent;// newsContent
	private ArrayList<FindingImg> relImg;

	public void setCreateAt(long createAt) {
		this.createAt = createAt;
	}

	public String getNewsUrl() {
		return newsUrl;
	}

	public void setNewsUrl(String newsUrl) {
		this.newsUrl = newsUrl;
	}

	public int getFindId() {
		return findId;
	}

	public void setFindId(int findId) {
		this.findId = findId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getProgramaId() {
		return programaId;
	}

	public void setProgramaId(int programaId) {
		this.programaId = programaId;
	}

	public long getCreateAt() {
		return createAt;
	}

	public void setCreateAt(int createAt) {
		this.createAt = createAt;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getRecommendNum() {
		return recommendNum;
	}

	public void setRecommendNum(int recommendNum) {
		this.recommendNum = recommendNum;
	}

	public int getOpposeNum() {
		return opposeNum;
	}

	public void setOpposeNum(int opposeNum) {
		this.opposeNum = opposeNum;
	}

	public int getShareNum() {
		return shareNum;
	}

	public void setShareNum(int shareNum) {
		this.shareNum = shareNum;
	}

	public int getCollectNum() {
		return collectNum;
	}

	public void setCollectNum(int collectNum) {
		this.collectNum = collectNum;
	}

	public int getShareAddress() {
		return shareAddress;
	}

	public void setShareAddress(int shareAddress) {
		this.shareAddress = shareAddress;
	}

	public int getReadNum() {
		return readNum;
	}

	public void setReadNum(int readNum) {
		this.readNum = readNum;
	}

	public int getFindFlag() {
		return findFlag;
	}

	public void setFindFlag(int findFlag) {
		this.findFlag = findFlag;
	}

	public String getNewsContent() {
		return newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	public ArrayList<FindingImg> getRelImg() {
		return relImg;
	}

	public void setRelImg(ArrayList<FindingImg> relImg) {
		this.relImg = relImg;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void addImg(List<Object> findAll) {
		// TODO Auto-generated method stub
		if (findAll == null)
			return;
		if (relImg == null) {
			relImg = new ArrayList<FindingImg>();
		}
		for (int i = 0; i < findAll.size(); i++) {
			this.relImg.add((FindingImg) findAll.get(i));
		}
	}
}
